/*
 * Copyright 2015-2016 Imply Data, Inc.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../imports';

.loading-bar {
  width: 100%;
  height: 30px;

  // Inner text styling
  > * {
    padding-top: 9px;
    text-align: center;
    color: $brand;
  }

  .undetermined {
    $color-0: hsla(202, 83%, 95%, 1.00);
    $color-1: hsla(201, 83%, 91%, 1.00);

    width: 100%;
    height: 100%;

    background-image: repeating-linear-gradient(-45deg, $color-0, $color-0 7px, $color-1 7px, $color-1 10px);
    animation: progress 1s linear infinite;
    background-size: 150% 100%;

    @keyframes progress {
      0% {
        background-position: 0 0;
      }

      100% {
        background-position: -70px 0;
      }
    }
  }
}
